﻿<Window x:Class="Tech4WPF_TestApp.KnobControlTest"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:kc="clr-namespace:Tech4WPF.KnobControl;assembly=Tech4WPF"
        Title="Tech4WPF KnobControlTest" Height="454" Width="678">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="300"/>
        </Grid.ColumnDefinitions>
        <Grid Grid.Column="0">
                <kc:KnobControl Name="knobControl" Label="Volume" ValuesHorizontally="False" />
        </Grid>
        <Grid Grid.Column="1">
            <TextBox HorizontalAlignment="Left" Margin="80,6,0,0" Name="textBox1" Width="50" Text="{Binding ElementName=knobControl, Path=StartAngle}" Height="23" VerticalAlignment="Top"/>
            <TextBox HorizontalAlignment="Left" Margin="220,6,0,0" Name="textBox2" Width="50" Text="{Binding ElementName=knobControl, Path=EndAngle}" Height="23" VerticalAlignment="Top" />
            <TextBox HorizontalAlignment="Left" Margin="80,35,0,0" Name="textBox3" Text="{Binding ElementName=knobControl, Path=Minimum}" Width="50" Height="23" VerticalAlignment="Top" />
            <TextBox Height="23" Margin="220,35,0,0" Name="textBox4" Text="{Binding ElementName=knobControl, Path=Maximum}" VerticalAlignment="Top" HorizontalAlignment="Left" Width="50" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="80,64,0,0" Name="textBox5" Text="{Binding ElementName=knobControl, Path=MajorStep}" VerticalAlignment="Top" Width="50" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="220,64,0,0" Name="textBox6" Text="{Binding ElementName=knobControl, Path=MinorStep}" VerticalAlignment="Top" Width="50" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="80,93,0,0" Name="textBox7" Text="{Binding ElementName=knobControl, Path=Label}" VerticalAlignment="Top" Width="50" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="220,93,0,0" Name="textBox8" Text="{Binding ElementName=knobControl, Path=DefaultValue}" VerticalAlignment="Top" Width="50" />
            <Button Content="Knob Fill" Height="23" HorizontalAlignment="Left" Margin="6,151,0,0" Name="btnKnobFill" VerticalAlignment="Top" Width="124" Click="btnKnobFill_Click" />
            <Button Content="Knob Stroke" Height="23" HorizontalAlignment="Left" Margin="146,151,0,0" Name="btnKnobStroke" VerticalAlignment="Top" Width="124" Click="btnKnobStroke_Click" />
            <Button Content="Scale Stroke" Height="23" HorizontalAlignment="Left" Margin="6,180,0,0" Name="btnScaleStroke" VerticalAlignment="Top" Width="124" Click="btnScaleStroke_Click" />
            <Button Content="Value Foreground" Height="23" HorizontalAlignment="Left" Margin="146,180,0,0" Name="btnValueForeground" VerticalAlignment="Top" Width="124" Click="btnValueForeground_Click" />
            <Button Content="Major Stamp Stroke" Height="23" HorizontalAlignment="Left" Margin="6,209,0,0" Name="btnMajorStampStroke" VerticalAlignment="Top" Width="124" Click="btnMajorStampStroke_Click" />
            <Button Content="Minor Stamp Stroke" Height="23" HorizontalAlignment="Left" Margin="146,209,0,0" Name="btnMinorStampStroke" VerticalAlignment="Top" Width="124" Click="btnMinorStampStroke_Click" />
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="6,6,0,0" Text="Start angle:" VerticalAlignment="Top" />
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="151,6,0,0" Text="End angle:" VerticalAlignment="Top" />
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="6,35,0,0" Text="Minimum:" VerticalAlignment="Top" />
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="151,35,0,0" Text="Maximum:" VerticalAlignment="Top" />
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="6,64,0,0" Text="Major Step:" VerticalAlignment="Top" />
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="151,64,0,0" Text="Minor Step:" VerticalAlignment="Top" />

            <TextBlock Height="23" HorizontalAlignment="Left" Margin="6,93,0,0" Text="Label:" VerticalAlignment="Top" Width="60" />
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="151,93,0,0" Text="Default val:" VerticalAlignment="Top" Width="60" />
            <CheckBox Name="chbSnap" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="6,238,0,0" Content="Snap" IsChecked="{Binding Path=Snap, ElementName=knobControl}" Width="47" />
            <CheckBox Name="chbValuesHorizontally" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="146,238,0,0" Content="Values Horizontally" IsChecked="{Binding Path=ValuesHorizontally, ElementName=knobControl}" Width="123" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="151,122,0,0" Text="{Binding ElementName=knobControl, Path=FormatString}" VerticalAlignment="Top" Width="61" />
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="54,122,0,0" Text="Format String:" VerticalAlignment="Top" Width="76" />
            <TextBlock Margin="62,287,0,0" Text="Value:" HorizontalAlignment="Left" Width="36" Height="23" VerticalAlignment="Top" />
            <TextBlock Margin="104,287,0,0" Name="tblTest" Text="{Binding ElementName=knobControl, Path=Value, StringFormat=\{0:0.00000\}}" HorizontalAlignment="Left" Width="93" Height="23" VerticalAlignment="Top" />
            <TextBox Name="tbxValue" Margin="62,324,0,0" HorizontalAlignment="Left" Width="107" Height="23" VerticalAlignment="Top" />
            <Button Content="Set Value" Height="23" Margin="175,324,0,0" Name="btnSetValue" VerticalAlignment="Top" Click="btnSetValue_Click" HorizontalAlignment="Left" Width="75" IsDefault="True" />
            <Button Content="Reset Value" Height="23" Margin="91,354,0,0" Name="btnReset" VerticalAlignment="Top" Click="btnReset_Click" HorizontalAlignment="Left" Width="124" />
        </Grid>
    </Grid>
</Window>
